#!/bin/sh


echo "git add ."
git add .

read -p "输入commit信息,回车默认为提交时间：" msg
if [ ! -n "$msg" ]; then  
  git commit -m "$(date "+%Y年%m月%d日 %H:%M:%S")"  
  echo "git commit -m '$(date "+%Y年%m月%d日 %H:%M:%S")'"
else
  git commit -m "$msg"
  echo "git commit -m '$msg'"
fi    



echo "git pull"
git pull  origin master


echo "git push"
git push   origin master


 